package com.csun.cmny.provider.model.domain;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.ibatis.type.Alias;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

@Data
@Alias(value = "dmcCsunBodySensorLocation")
@Table(name = "cn_dmc_csun_body_sensor_location")
@EqualsAndHashCode(callSuper = true)
public class DmcCsunBodySensorLocation extends DeviceBindBaseEntity {

    private static final long serialVersionUID = -1049515043895281817L;

    /**
     * 设备Id
     */
    @Id
    @Column(name = "device_id")
    private Long deviceId;

    /**
     * 0-自定义, 1-房间
     */
    @Column(name = "bind_type")
    private Integer bindType;

    /**
     * 房间Id
     */
    @Column(name = "room_id")
    private Integer roomId;

    /**
     * 绑定位置
     */
    private String location;

    /**
     * 电量 V * 10
     */
    @Column(name = "adc_value")
    private String adcValue;

    /**
     * 电量百分比
     */
    @Column(name = "adc_percent")
    private String adcPercent;
}